package com.websocket.handshake;

import com.websocket.service.WebSocketConnection;
import org.java_websocket.WebSocket;
import org.java_websocket.drafts.Draft;
import org.java_websocket.handshake.ClientHandshake;

import java.security.Principal;
import java.util.Map;

public interface HandshakeInterceptor {
    boolean beforeHandshake(WebSocketConnection conn, Draft draft, ClientHandshake handshake, Map<Principal, WebSocket> connections);
}
